//
//  ZNGUserInfoDataSource.h
//  开店通
//
//  Created by 张浩 on 15/7/15.
//  Copyright (c) 2015年 张浩. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZNGSingleton.h"

@interface ZNGBrandAuthList : NSObject
@property(nonatomic,strong) NSMutableArray * array;
@end

@interface ZNGBrandInfo : NSObject
@property(nonatomic,copy) NSString * name;
@property(nonatomic,copy) NSString * brandID;
@end

@interface ZNGUserInfo : NSObject
/** 1：大B 2：小B*/
@property(nonatomic, assign)NSInteger roleid;

@property(nonatomic, copy)NSString *username;
@property(nonatomic, assign)BOOL isDeliver;
@property(nonatomic, copy)NSString *rolename;
@property(nonatomic, copy)NSString *mobilePhone;
@property(nonatomic, copy)NSString *address;
@property(nonatomic, copy)NSString *email;
@property(nonatomic, copy)NSString *company;
@property(nonatomic, copy)NSString *province;
@property(nonatomic, copy)NSString *userid;
@property(nonatomic, copy)NSString *state;
@property(nonatomic, copy)NSString *city;
@property(nonatomic, copy)NSString *dept;
@end

@interface ZNGUserData : NSObject
@property(nonatomic, copy)NSString * token;
@property(nonatomic, strong)ZNGUserInfo * object;
@property(nonatomic, strong)NSArray * county;
@property(nonatomic, strong)ZNGBrandAuthList * brandAuth;
@end

@interface ZNGLoginResult : NSObject
@property(nonatomic, copy)NSString *message;
@property(nonatomic, assign)NSInteger code;
@property(nonatomic, copy)NSString *status;
@property(nonatomic, strong)ZNGUserData *data;
@end

@interface ZNGLoginParam : NSObject
@property(nonatomic, copy)NSString *mobilePhone;
@property(nonatomic, copy)NSString *password;
@property(nonatomic, copy)NSString *vcode;
@property(nonatomic, copy)NSString *isBusiness;
@end



@interface ZNGUser : NSObject
ZNGSingletonH(userInfo)

@property(nonatomic, assign, getter=isOnline)BOOL online;
@property(nonatomic, copy, readonly)NSString *token;
@property(nonatomic, copy, readonly)NSString *userId;
@property(nonatomic, copy, readonly)NSString *userName;
@property(nonatomic, strong, readonly)NSArray *county;
@property(nonatomic, strong, readonly)NSArray *brandList;

@property(nonatomic, copy, readonly)NSString *registrationID;

@property(nonatomic, assign)BOOL hasBind;

+ (void)loginWithUserData:(ZNGUserData *)userData;
/** 退出 */
+ (void)logout;
@end